<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
<title>后台管理系统</title>
<link rel="stylesheet" href="__PUBLIC__/Admin/css/css.css">
<script src="__PUBLIC__/Admin/js/jquery-1.9.1.js"></script>
<script src="__PUBLIC__/Common/Layer/layer.js"></script>
<script src="__PUBLIC__/Common/My97Date/WdatePicker.js"></script>
</head>
<body>

<div class="nav">
	<div class="nav_title">
    	<h4><img class="nav_img" src="__PUBLIC__/Admin/img/tab.gif" /><span class="nav_a">客户管理</span></h4>
    </div>
</div>

<form action="__SELF__" method="get">
<div class="search" style="height:50px; line-height:50px; padding-left:30px; margin-top:3px;">
手机号：<input type="text" name="mobile" maxlength="16" class="input" style="height:28px;" />

		  &nbsp;&nbsp;&nbsp;&nbsp;
		开始日期：<input type="text" class="input" name="begin_time" value="{$_GET['begin_time']}" onClick="WdatePicker()"/>
		&nbsp;&nbsp;
        结束日期：<input type="text" class="input" name="end_time" value="{$_GET['end_time']}" onClick="WdatePicker()"/>

&nbsp;&nbsp;&nbsp;
    <button type="submit" name="submit" class="button">查 询</button>
&nbsp;&nbsp;
<a href="{:U('User/daochu_choujiang_record')}?begin_time={$_GET['begin_time']}&end_time={$_GET['end_time']}" class="button" style="background:#333; padding:5px 20px;">下载中奖记录</a> (默认查询7日内的数据 , 时间间隔尽量在一个月内)
</div>
</form>

<div class="list">
	  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
      <thead>
	    <tr>
	      <td width="15%"><div align="center">ID</div></td>
	      <td width="18%"><div align="center">中奖账号</div></td>
	      <td width="16%"><div align="center">中奖等级</div></td>
	      <td width="16%"><div align="center">奖品名称</div></td>
	      <td width="17%"><div align="center">中奖时间</div></td>
        </tr>
        </thead>
        <tbody>
        <foreach name="result" item="vo">
	    <tr id="del{$vo.id}">
	      <td height="50"><div align="center">{$vo.id}</div></td>
	      <td><div align="center">{$vo.mobile}</div></td>
	      <td><div align="center">{$vo.jiangpin_dengji}</div></td>
	      <td><div align="center">{$vo.jiangpin_name}</div></td>
		  
	      <td><div align="center">{$vo.choujiang_time|date="Y-m-d H:i:s",###}</div></td>
	      </tr>
        </foreach>
        </tbody>
  </table>
</div>

<!-- 分页 -->
<div class="page">
{$page}
</div>
<script>
function shoper_add(){
	parent.layer.open({
		type: 2,
		title: '添加供应商',
		shadeClose: true,
		shade: 0.5,
		area: ['600px', '300px'],
		content: '{:U("User/shoper_add")}'
	});
}
</script>
</body>
</html>
